package org.trc.trajectory;

import java.util.GregorianCalendar;

import java.text.SimpleDateFormat;
import com.vividsolutions.jts.geom.Point;

public class TrajectoryPoint {
	public String carID;
	public String linkID;
	public double offset;
	public double speed;
	public double direction;
	public int status;
	public String tripID;
	public GregorianCalendar timestamp;
	public int seconds; //æ�’å€¼
	public Point geom;
	
	public String  getTimeString(){ //"2008-12-28 08:00:12"
		SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		return dateFormat.format(timestamp.getTime());
	}

}
